<!DOCTYPE html>
<html lang="zh_CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>淘宝导航条</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }
        .nav {
            width: 100%;
        }
        .inner {
            display: flex;
            justify-content: space-around;
        }
        .item {
            /* 设置弹性盒子 */
            width: 15%;
            /* background-color: #bfa; */
            /* flex: auto; */
            text-align: center;
        }
        .item img {
            /* 设置图片宽度和父元素一致 */
            width: 100%;
        }
        .item a {
            text-decoration: none;
            color: #333;
            font-size: 14px;
            display: block;
        }
    </style>
</head>

<body>
    <nav class="nav">
        <div class="inner">
            <div class="item">
                <a href="#">
                    <img src="./imgs/1.png" alt="">
                    <span>天猫新品</span>
                </a>
            </div>
            <div class="item">
                <a href="#">
                    <img src="./imgs/2.png" alt="">
                    <span>今日爆款</span>
                </a>
            </div>
            <div class="item">
                <a href="#">
                    <img src="./imgs/3.png" alt="">
                    <span>天猫国际</span>
                </a>
            </div>
            <div class="item">
                <a href="#">
                    <img src="./imgs/4.png" alt="">
                    <span>饿了么</span>
                </a>
            </div>
            <div class="item">
                <a href="#">
                    <img src="./imgs/5.png" alt="">
                    <span>天猫超市</span>
                </a>
            </div>
        </div>
        <div class="inner">
            <div class="item">
                <a href="#">
                    <img src="./imgs/6.png" alt="">
                    <span>充值中心</span>
                </a>
            </div>
            <div class="item">
                <a href="#">
                    <img src="./imgs/7.png" alt="">
                    <span>机票酒店</span>
                </a>
            </div>
            <div class="item">
                <a href="#">
                    <img src="./imgs/8.png" alt="">
                    <span>金币庄园</span>
                </a>
            </div>
            <div class="item">
                <a href="#">
                    <img src="./imgs/9.png" alt="">
                    <span>阿里拍卖</span>
                </a>
            </div>
            <div class="item">
                <a href="#">
                    <img src="./imgs/10.png" alt="">
                    <span>淘宝吃货</span>
                </a>
            </div>
        </div>
    </nav>
</body>

</html>